#include "pch.h"

UniformViewMatrixUpdateCallback::UniformViewMatrixUpdateCallback(osg::Camera *camera)
	:mCamera(camera)
{}

void UniformViewMatrixUpdateCallback::operator()(osg::Uniform* uniform, osg::NodeVisitor* visitor)
{
	uniform->set(mCamera->getViewMatrix());
}